package com.team7.stat.utils;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName: CommonResult
 * @Description:
 * @Author: 赵孟阳
 * @Date: 2021/10/19 14:44
 */
@Data
@NoArgsConstructor
public class CommonResult {
    private Integer code;
    private String msg;
    private Object result;
    private Long count;

    public CommonResult(Integer code,String msg,Object result){
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public CommonResult(Object result){
        this.result = result;
    }

    public CommonResult(Integer code,String msg,Object result,Long count){
        this.code = code;
        this.msg = msg;
        this.result = result;
        this.count = count;
    }
}
